package com.xnyzc.lhy.mis.mapper.cms.invoice;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.finance.entity.invoice.OaSysInvoiceDidiApply;
import com.xnyzc.lhy.mis.entity.result.cms.invoice.OaSysInvoiceDidiApplyResults;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * <p>
 * 滴滴申请开票及记录（对接AA平台） Mapper 接口
 * </p>
 *
 * @author liuju
 * @since 2019-11-18
 */
public interface OaSysInvoiceDidiApplyMapper extends BaseMapper<OaSysInvoiceDidiApply> {

    /**
     * 获取发票列表
     * @param iPage;分页器
     * @param oaSysInvoiceDidiApplyResults：请求参数
     * @return
     */
    IPage<OaSysInvoiceDidiApplyResults> getInvoiceList(IPage iPage, OaSysInvoiceDidiApplyResults oaSysInvoiceDidiApplyResults);

    /**
     * 导出发票列表信息
     * @param receiveName
     * @param receiveMobile
     * @param didiInvoiceStatus
     * @param beginTime
     * @param overTime
     * @return
     */
    List<OaSysInvoiceDidiApplyResults> exportGetInvoiceList(
            @Param("receiveName") String receiveName,
            @Param("receiveMobile") String receiveMobile,
            @Param("didiInvoiceStatus") String didiInvoiceStatus,
            @Param("beginTime") Date beginTime,
            @Param("overTime") Date overTime
    );

    /**
     * 获取详情信息
     * @return
     */
    OaSysInvoiceDidiApplyResults getInvoiceItem(@Param("recordId") Long recordId);


}
